﻿using System.Windows.Forms;

namespace VolgaTransTelecomClient
{
    internal partial class ServerCertificateError : Form
    {
        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="ServerCertificateError"/> class.
        /// </summary>
        internal ServerCertificateError()
        {
            InitializeComponent();
        }
        #endregion

        #region Properties
        /// <summary>
        /// Gets a value indicating whether answer should me remembered.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if answer should be remembered; otherwise, <c>false</c>.
        /// </value>
        internal bool RememberAnswerChecked
        {
            get
            {
                return _rememberAnswer.Checked;
            }
        }
        #endregion

        #region Methods
        /// <summary>
        /// Sets the error details text.
        /// </summary>
        /// <param name="text">The text.</param>
        internal void SetErrorDetailsText(string text)
        {
            _errorDetails.Text = text;
        }
        #endregion
    }
}
